from Common.common import Common


class LoginPage(Common):

    ele_username = '[type="text"]'
    ele_password = '[type="password"]'
    ele_button = '[type="button"]'

    def login(self,username,password):
        self.goto_url(self.s_baseurl)
        self.input(self.ele_username, username)
        self.input(self.ele_password, password)
        self.click(self.ele_button)
        return self
